package jianzhu.service.impl;

import jianzhu.dao.JianZhuDao;
import jianzhu.entity.BjEntity;
import jianzhu.entity.JianZhuEntity;
import jianzhu.entity.Page;
import jianzhu.service.JianZhuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("jianzhuService")
public class JianZhuServiceImpl implements JianZhuService {
    @Autowired
    JianZhuDao jianZhuDao;
    @Override
    public List<JianZhuEntity> queryPage(Page page,String name) {

        return jianZhuDao.queryPage(page,name);
    }

    @Override
    public void save(JianZhuEntity jianZhuEntity)
    {
        jianZhuDao.save(jianZhuEntity);
    }

    @Override
    public int queryCount(String name) {
        return jianZhuDao.queryCount(name);
    }

    @Override
    public JianZhuEntity edit(JianZhuEntity jianZhuEntity) {
        return jianZhuDao.edit(jianZhuEntity);
    }

    @Override
    public void del(JianZhuEntity jianZhuEntity) {
        jianZhuDao.del(jianZhuEntity);
    }

    @Override
    public List<BjEntity> bj() {
        return jianZhuDao.bj();
    }
}
